TFileShortCut
by Jose Maria Ferri
Aug - 16, 2002
This component is Freeware

DESCRIPTION:
------------

With this component you can create Shortcuts to files (Shell Links)


INSTALLATION: (delphi 6)
------------------------

Unzip FileShortCut.zip

Open Delphi 6, select Components->Install Component

Browse for FileShortCut.pas in "Unit name"

Press "Ok" button and then press "Compile" button

It will be installed in "Win32" tab


USE:
----

Drop a TFileShortCut component on your form, set ShortCutName and TargetFile at least
and call "Execute" method

PROPERTIES:
-----------

Arguments: Set ShortCut arguments list
Description: Set ShortCut description
ErrorCode (*)(%): Error code if "Execute" method returns false (See "methods" bellow)
ShortCutIcon:
   IconIndex: Set Icon index from source icon file (See next)
   IconLocation: Set Icon location for shotcut (any file containing icons, such as *.exe, *.dll or *.ico)
ShortCutName (#): Shortcut Name. (if .lnk extension is not especified, it will be added)
TargetFile (#): Existing fileName. It will be shortcut target 
WindowState: Initial window state when executing the short cut
WorkingDirectory: shortcut Working directory. If not especified, it assumes Target file directory

#: Requiered
*: Run time only
%: Read only

METHODS:
--------

Execute: Call execute to create the short cut. If it fails, returns false and ErrorCode property can be:

   -1: Target file not specified
   -2: Shortcut filename not especified
	
	System errors:

   REGDB_E_CLASSNOTREG: Indicates that a specified class is not registered in the registration database.
   E_OUTOFMEMORY: Out of memory.
   E_INVALIDARG: Indicates one or more arguments are invalid. 
   E_UNEXPECTED: Indicates an unexpected error occurred.
   CLASS_E_NOAGGREGATION: Indicates this class cannot be created as part of an aggregate.
   S_FALSE: Interface not supported
   E_FAIL: The file was not saved

